package cn.maidouya.hrm.constant;

public enum CourseLevelEnum {
    GOLD(1L,"黄金"), PLATINUM(2L,"铂金"), DIAMONDS(3L,"钻石"), THEKING(4L,"王者");
    private Long id;
    private String name;

    CourseLevelEnum(Long id, String name) {
        this.id = id;
        this.name = name;
    }
    public static CourseLevelEnum checkCourseLevelEnum(Long id) {
        CourseLevelEnum[] values = CourseLevelEnum.values();
        for (CourseLevelEnum level : values){
            if (level.id.longValue() == id){
                return level;
            }
        }
        return null;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}